<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class RemoveIndexStageOrderNumberInStageTable extends AbstractMigration
{
    public function up()
    {
        $this->table('stage')->removeIndexByName('idx_stage_order_number')->save();
    }

    public function down()
    {
        $this->table('stage')
            ->addIndex(['order_number'], ['unique' => true, 'name' => 'idx_stage_order_number'])
            ->save();
    }
}
